package sskj.regulatory.presentation.screen.launcher

import android.os.Bundle
import android.view.View
import sskj.regulatory.R
import sskj.regulatory.presentation.base_mvp.base.BaseFragment
import sskj.regulatory.presentation.screen.login.LoginFragment
import javax.inject.Inject


class LauncherFragment : BaseFragment<LauncherContract.View, LauncherContract.Presenter>(), LauncherContract.View {

    @Inject
    lateinit var mPresenter: LauncherPresenter

    override fun injectDependencies() = activityComponent.inject(this)

    override fun onBackPressed(): Boolean = true

    override fun initPresenter() = mPresenter

    override val layoutResId: Int = R.layout.fragment_launcher

    override fun initView() {

    }


    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)

        view?.postDelayed({
            startFragment(LoginFragment())
        }, 3000)
    }

}
